﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Design;
using Beetle.Web.Composite;

namespace Beetle.Web.UI.WebControls
{
    public class GridVeiwExtensionCollectionEditor : CollectionEditor
    {
        public GridVeiwExtensionCollectionEditor(Type type)
            : base(type)
        {
        }

        protected override bool CanSelectMultipleInstances()
        {
            return false;
        }

        protected override Type CreateCollectionItemType()
        {
            return typeof(ExtensionBase);
        }

        protected override Type[] CreateNewItemTypes()
        {
            return new Type[] { typeof(GridViewMouseOverExtension) };
        }
    }
}
